using SqlSugar;
using System.ComponentModel.DataAnnotations;
namespace Jst.Domain
{
    [SugarTable("Department", TableDescription = "部门表")]
    public partial class Department
    {
        /// <summary>
        /// Id
        /// </summary>
        [Display(Name = "Id")]
        [SugarColumn(ColumnDescription = "Id", IsNullable = false, IsPrimaryKey = true, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public long Id { get; set; }

        /// <summary>
        /// Desc:部门关系编码Default:Nullable:True
        /// </summary>
        [Display(Name = "Desc:部门关系编码Default: Nullable:True")]
        [SugarColumn(ColumnDescription = "Desc:部门关系编码Default:Nullable:True", IsNullable = false, IsPrimaryKey = false, IsIdentity = false)]
        [StringLength(255, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public string CodeRelationship { get; set; }

        /// <summary>
        /// Desc:部门名称Default:Nullable:True
        /// </summary>
        [Display(Name = "Desc:部门名称Default:Nullable:True")]
        [SugarColumn(ColumnDescription = "Desc:部门名称Default:Nullable:True", IsNullable = false, IsPrimaryKey = false, IsIdentity = false)]
        [StringLength(255, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public string Name { get; set; }

        /// <summary>
        /// Desc:负责人Default:Nullable:True
        /// </summary>
        [Display(Name = "Desc:负责人Default:Nullable:True")]
        [SugarColumn(ColumnDescription = "Desc:负责人Default:Nullable:True", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [StringLength(255, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public string Leader { get; set; }

        /// <summary>
        /// Desc:排序 Default:Nullable:True
        /// </summary>
        [Display(Name = "Desc:排序Default:Nullable:True")]
        [SugarColumn(ColumnDescription = "Desc:排序Default:Nullable:True", IsNullable = false, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public int OrderSort { get; set; }

        /// <summary>
        /// Desc:部门状态（0正常 1停用）Default:0Nullable:True
        /// </summary>
        [Display(Name = "Desc:部门状态（0正常 1停用）Default:0Nullable:True")]
        [SugarColumn(ColumnDescription = "Desc:部门状态（0正常 1停用）Default:0Nullable:True", IsNullable = false, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public bool Status { get; set; }

        /// <summary>
        /// Desc:删除标志（0代表存在 2代表删除）Default:0Nullable:True
        /// </summary>
        [Display(Name = "Desc:删除标志（0代表存在 2代表删除）Default:0Nullable:True")]
        [SugarColumn(ColumnDescription = "Desc:删除标志（0代表存在 2代表删除）Default:0Nullable:True", IsNullable = false, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public bool IsDeleted { get; set; }

        /// <summary>
        /// Desc:创建者Default:Nullable:True
        /// </summary>
        [Display(Name = "Desc:创建者Default:Nullable:True")]
        [SugarColumn(ColumnDescription = "Desc:创建者Default:Nullable:True", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [StringLength(255, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public string CreateBy { get; set; }

        /// <summary>
        /// Desc:创建时间Default:Nullable:True
        /// </summary>
        [Display(Name = "Desc:创建时间Default:Nullable:True")]
        [SugarColumn(ColumnDescription = "Desc:创建时间Default:Nullable:True", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// Desc:更新者Default:Nullable:True
        /// </summary>
        [Display(Name = "Desc:更新者Default:Nullable:True")]
        [SugarColumn(ColumnDescription = "Desc:更新者Default:Nullable:True", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [StringLength(255, ErrorMessage = "【{0}】不能超过{1}字符长度")]
        public string ModifyBy { get; set; }

        /// <summary>
        /// Desc:更新时间 Default:Nullable:True
        /// </summary>
        [Display(Name = "Desc:更新时间Default: Nullable:True")]
        [SugarColumn(ColumnDescription = "Desc:更新时间Default: Nullable:True", IsNullable = true, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public DateTime ModifyTime { get; set; }

        /// <summary>
        /// Pid
        /// </summary>
        [Display(Name = "Pid")]
        [SugarColumn(ColumnDescription = "Pid", IsNullable = false, IsPrimaryKey = false, IsIdentity = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public long Pid { get; set; }

    }
}
